449de678c06b99d07d8d5700c6ea4fad2e7740fd,activeweb-testing/src/test/java/org/javalite/activeweb/UploadControllerSpec.java,UploadControllerSpec,shouldUploadMultipartForm,#,80
Before Change
controller("upload")
.contentType("multipart/form-data")
.formItem(new FileItem("hello1.txt", "hello1", "text/plain", "greetings!".getBytes()))
.formItem(new FileItem("hello2.txt", "hello2", "text/plain", ".. and salutations!".getBytes()))
.integrateViews()
.post("upload-multipart");
String html = responseContent();
a(XPathHelper.count("/html/div", html)).shouldBeEqual(2);
After Change
controller("upload")
.contentType("multipart/form-data")
.formItem(new FileItem("hello1.txt", "hello1", "text/plain", "greetings!".getBytes()))
.formItem(new FileItem("hello2.txt", "hello2", "text/plain", ".. and salutations!".getBytes()))
.post("upload-multipart");
String html = responseContent();
a(XPathHelper.count("/html/div", html)).shouldBeEqual(2);